var detailVm;
var action='';//1代表学校订单
$(function(){
    action=getParam('action');
    detailVm = new Vue({
        el:'#detail_id',
        data:{
            price:1,
            oldPrice:20.00,
            beSoldNumber:200,//一出售
            remainNumber:600,//剩余
            remainTime:10,//剩余
            buyProgress:8,//抢购进度
            activeTab:0
        },
        methods:{
            onClosePage:function(){
                // window.open("about:blank", "_top").close();
                window.close();
            },
            goodsTabClick:function(action){
                this.activeTab=action;
            }
        }
    });
});



function placeOrder(){
    // var pathUrl="http://172.16.6.129:8082/rfidtool/view/ylsw/html/goods/confirm_order.html"
    // window.location='http://x3q4qh.natappfree.cc/yl/wechat/authorize?returnUrl='+pathUrl;
    //var url = '../../../wechat/wxConfirmOrder?action='+action;
    //alert(url);
    var url = 'https://newsales.chinaesf.net/yl/wechat/wxConfirmOrder?action='+action;
    window.open(url);
    //window.open('confirm_order.html?action='+action);
}